<div>
    <form action="" style="display: none" id="{{uploadFormId}}" method="POST"
          enctype="multipart/form-data" target="commonUploadIframe">
        <input type="hidden" name="parentFolderId" value=""/>
        <input type="hidden" name="uploadType" value="postMessage"/>
        <input type="hidden" name="jsCallback" value=""/>
        <input type="hidden" name="originHost" value=""/>
        <input type="hidden" name="isPublic" value="{{isPublicFile}}"/>
        <input type="file" name="file"/>
        <input type="submit"/>
    </form>
    <button class="btn btn-default" ng-click="toUpload()">{{uploadButtonName}}</button>
</div>